<%@page import="edu.facilites.model.Function"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div class="man-left">
    <%
        List<Function> list = (List<Function>)request.getSession().getAttribute("functionlist");
        if(null != list && list.size() > 0) {
            for(Function function: list) {
                StringBuilder sb = new StringBuilder();
                sb.append("<a href='");
                sb.append(request.getContextPath());
                sb.append("/");
                sb.append(function.getUrl());
                sb.append("'>");
                sb.append(function.getName());
                sb.append("</a>");
                out.print(sb.toString());
            }
        }else {
            response.sendRedirect(request.getContextPath() + "/login.do");
        }
    %>
</div>

